package io.github.shang11925.sbvuewelearn.service;

import io.github.shang11925.sbvuewelearn.dto.ChaptersDTO;
import io.github.shang11925.sbvuewelearn.entity.Chapters;

import java.util.List;

public interface ChaptersService {
    List<Chapters> findAll();
    List<Chapters> findByCourseId(Long courseId);
    void add(ChaptersDTO chaptersDTO);
    void delete(Long id);
    void update(Long chapterId, ChaptersDTO chaptersDTO);
    long count();
}
